package shapeandson7_1;

public class Square extends Rectangle {

	protected double side;

	public Square() {
		super();
	}

	public Square(double side, String color, boolean filled) {
		super(color, filled);
	}

	public Square(double side) {
		super();
		this.side = side;
		super.width = side;
		super.length = side;
	}

	public double getSide() {
		return side;
	}

	public void setSide(double side) {
		this.side = side;
	}

	public void setWidth(double side) {
		super.width = side;
	}

	public void setLength(double side) {
		super.length = side;
	}

	@Override
	public String toString() {
		return "Square [side=" + side + "]";
	}

}
